package online.xuping.thousandsOfWorlds.thousandsOfWorlds.service;

import com.github.artbits.quickio.api.DB;
import com.github.artbits.quickio.core.QuickIO;
import lombok.Data;
import online.xuping.thousandsOfWorlds.thousandsOfWorlds.domain.BaseDomain;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

/**
 * 类描述:    .
 *
 * @author xuping
 * 创建时间:  [2023/10/27 11:37]
 */
@Data
public class BaseService<T  > {
    private DB db;
    private String dbName="noDbSet";


    private Class<T> genericClass;

    public BaseService(Class<T> genericClass) {
        this.genericClass = genericClass;
    }

    public void initDb() {
        this.db=QuickIO.usingDB(dbName);
    }
}
